package itdfq.dfq.Creational_Pattern.jianzaozhe;

/**
 * @Author GocChin
 * @Date 2021/3/22 12:25
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210111   段方钦");
        ProductBuilder productBuilder  = (ProductBuilder) XMLUtil.getBean();
        Waiter waiter = new Waiter();
        waiter.setProductBuilder(productBuilder);
        Product construct = waiter.construct();
        System.out.println("中国移动的套餐为：");
        System.out.println(construct.getLiuliang());
        System.out.println(construct.getTonghuashjjian());
    }
}
